home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / content / nsIPhonetic.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  2KB  |  99 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIPhonetic.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIPhonetic_h__
  6. #define __gen_nsIPhonetic_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIPhonetic */
  19. #define NS_IPHONETIC_IID_STR "bc6ea726-ab56-46b6-a21a-aa7b76d6818f"
  20.  
  21. #define NS_IPHONETIC_IID \
  22.   {0xbc6ea726, 0xab56, 0x46b6, \
  23.     { 0xa2, 0x1a, 0xaa, 0x7b, 0x76, 0xd6, 0x81, 0x8f }}
  24.  
  25. /** 
  26.  * This interface is used to get the phonetic value of the input text.
  27.  * It can be used to get corresponding phonetic value for ideographic text.
  28.  * The interface can be retrieved by calling QI to the interface 
  29.  * which implements the phonetic interface.
  30.  */
  31. class NS_NO_VTABLE nsIPhonetic : public nsISupports {
  32.  public: 
  33.  
  34.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPHONETIC_IID)
  35.  
  36.   /**
  37.    * phonetic get the phonetic value of the input text
  38.    */
  39.   /* readonly attribute DOMString phonetic; */
  40.   NS_IMETHOD GetPhonetic(nsAString & aPhonetic) = 0;
  41.  
  42. };
  43.  
  44. /* Use this macro when declaring classes that implement this interface. */
  45. #define NS_DECL_NSIPHONETIC \
  46.   NS_IMETHOD GetPhonetic(nsAString & aPhonetic); 
  47.  
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  49. #define NS_FORWARD_NSIPHONETIC(_to) \
  50.   NS_IMETHOD GetPhonetic(nsAString & aPhonetic) { return _to GetPhonetic(aPhonetic); } 
  51.  
  52. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  53. #define NS_FORWARD_SAFE_NSIPHONETIC(_to) \
  54.   NS_IMETHOD GetPhonetic(nsAString & aPhonetic) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPhonetic(aPhonetic); } 
  55.  
  56. #if 0
  57. /* Use the code below as a template for the implementation class for this interface. */
  58.  
  59. /* Header file */
  60. class nsPhonetic : public nsIPhonetic
  61. {
  62. public:
  63.   NS_DECL_ISUPPORTS
  64.   NS_DECL_NSIPHONETIC
  65.  
  66.   nsPhonetic();
  67.  
  68. private:
  69.   ~nsPhonetic();
  70.  
  71. protected:
  72.   /* additional members */
  73. };
  74.  
  75. /* Implementation file */
  76. NS_IMPL_ISUPPORTS1(nsPhonetic, nsIPhonetic)
  77.  
  78. nsPhonetic::nsPhonetic()
  79. {
  80.   /* member initializers and constructor code */
  81. }
  82.  
  83. nsPhonetic::~nsPhonetic()
  84. {
  85.   /* destructor code */
  86. }
  87.  
  88. /* readonly attribute DOMString phonetic; */
  89. NS_IMETHODIMP nsPhonetic::GetPhonetic(nsAString & aPhonetic)
  90. {
  91.     return NS_ERROR_NOT_IMPLEMENTED;
  92. }
  93.  
  94. /* End of implementation class template. */
  95. #endif
  96.  
  97.  
  98. #endif /* __gen_nsIPhonetic_h__ */
  99.